package cn.oms.oms.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author AllenChen曾晨
 * @since 2022-04-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("druginfo")
@ApiModel(value="Druginfo对象", description="")
public class Druginfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "药库存量ID")
    @TableId(value = "stockId", type = IdType.AUTO)
    private Integer stockId;

    @ApiModelProperty(value = "药房ID")
    @TableField("departmentId")
    private Integer departmentId;

    @ApiModelProperty(value = "产品ID")
    @TableField("itemId")
    private Integer itemId;

    @ApiModelProperty(value = "产品详情")
    @TableField("itemDescription")
    private String itemDescription;

    @ApiModelProperty(value = "数量基本单位名称")
    @TableField("unitName")
    private String unitName;

    @ApiModelProperty(value = "可用存量")
    @TableField("availableQty")
    private Integer availableQty;

    @ApiModelProperty(value = "冻结预存量")
    @TableField("freezeQty")
    private Integer freezeQty;

    @ApiModelProperty(value = "总数量")
    @TableField("totalQty")
    private Integer totalQty;

    @ApiModelProperty(value = "创建时间")
    @TableField("createTime")
    private Date createTime;

    @ApiModelProperty(value = "删除标记")
    @TableField("deleteFlag")
    private Integer deleteFlag;


    /**
     * 当前问题包含的标签集合
     */
    //这个属性没有对应的列,需要使用下面的注解表示,否则数据库操作会报错
    @TableField(exist = false)
    private String departmentIdName;

    /**
     * 当前问题包含的标签集合
     */
    //这个属性没有对应的列,需要使用下面的注解表示,否则数据库操作会报错
    @TableField(exist = false)
    private String returnCreateTime;

}
